<?php


namespace ioc\logic;


use ioc\interfaces\Log;

class User
{
    protected $log, $txt;

    public function __construct(Log $log, string $txt = '', array $arr = [], bool $bool = true, float $float = 0, int $int = 10)
    {
        $this->log = $log;
        $this->txt = $txt;
    }

    public function login()
    {
        echo "login success [{$this->txt}]" . PHP_EOL;
        $this->log->write();
    }
}